public class Student {

    private int num;
    private String name;
    private int age;
    private String class_;
    private double tall;
    int count=0 ;

    public Student(int num, String name, int age, String class_, double tall) {
        this.num = num;
        this.name = name;
        this.age = age;
        this.class_ = class_;
        this.tall = tall;
        count++;
    }
    public Student() {
    }
    public double getTall() {
        return tall;
    }

    public void setTall(double tall) {
        this.tall = tall;
    }

    public Student(int num, String name, int age, String class_) {
        this.num = num;
        this.name = name;
        this.age = age;
        this.class_ = class_;
        count++;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getClass_() {
        return class_;
    }

    public void setClass_(String class_) {
        this.class_ = class_;
    }

    public void eat ()
    {
        System.out.println(this.name+"吃饭");
    }

    public void study()
    {
        System.out.println(this.name+"学习");
    }

    public void sleep()
    {
        System.out.println(this.name+"睡觉");
    }

    @Override
    public String toString() {
        return "Student{" +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", tall=" + tall +
                '}';
    }
    public   void priCount()
    {
        System.out.println(this.count);
    }
}
